package cn.cs.client;
import cn.cs.fallback.CsAreaClientFallBack;
import cn.cs.pojo.CsArea;
import java.util.List;
import java.util.Map;

import cn.cs.config.CsConfiguration;
import org.springframework.cloud.netflix.feign.FeignClient;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;
import org.springframework.web.bind.annotation.RequestParam;
/**
* Created by yuexl
*/
@FeignClient(name = "cs-base-provider", configuration = CsConfiguration.class, fallback = CsAreaClientFallBack.class)
public interface RestCsAreaClient {

    @RequestMapping(value = "/getCsAreaById",method = RequestMethod.POST)
    public CsArea getCsAreaById(@RequestParam("id") Long id)throws Exception;

    @RequestMapping(value = "/getCsAreaListByMap",method = RequestMethod.POST)
    public List<CsArea>	getCsAreaListByMap(@RequestBody Map<String, Object> param)throws Exception;

    @RequestMapping(value = "/getCsAreaCountByMap",method = RequestMethod.POST)
    public Integer getCsAreaCountByMap(@RequestBody Map<String, Object> param)throws Exception;

    @RequestMapping(value = "/qdtxAddCsArea",method = RequestMethod.POST)
    public Integer qdtxAddCsArea(@RequestBody CsArea csArea)throws Exception;

    @RequestMapping(value = "/qdtxModifyCsArea",method = RequestMethod.POST)
    public Integer qdtxModifyCsArea(@RequestBody CsArea csArea)throws Exception;
}
